package com.zy.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.business.domain.TbProject;
import com.zy.business.domain.vo.ProjectDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
* @Description: 项目Mapper接口
* @Author: zhangxiaojia
* @Date: 2020/3/27
*/
public interface ProjectMapper extends BaseMapper<TbProject> {

    /**
     * 获取项目列表
     */
    List<TbProject> list(ProjectDto project);

    /**
     * 新增项目管理
     *
     * @param tbProject 项目管理
     * @return 结果
     */
    public int insertTbProject(TbProject tbProject);

    /**
     * 修改项目管理
     *
     * @param tbProject 项目管理
     * @return 结果
     */
    public int updateTbProject(TbProject tbProject);

    List<Map<String,String>> getProjectByUserId(@Param("userId") Long userId);

    List<Map<String,String>> getProjectSelect(@Param("projectId") Long projectId);

    List<Map<String,String>> projectAnalysis();

    List<Map<String, Object>> getMyProject(@Param("userId") Long userId,@Param("type") Integer type);

    List<Map<String, Object>> getPrincipalOption();

    TbProject getDetail(Long projectId);
}
